package services

import (
	"permange/dao"
	"permange/models"
)

func Getleavejob() (error, []models.Leavejob) {
	leavejobData,err  := dao.Selectleavejob()
	return err, leavejobData
}

func Updateleavejob(leavejob models.Leavejob) error{
	err:= dao.Updateleavejob(leavejob)
	return err
}

func Addleavejob(leavejob models.Leavejob) error {
	err := dao.Addleavejob(leavejob)
	return err
}

func Delleavejob(id string) error {
	err := dao.Deleteleavejob(id)
	return err
}